package com.share.tool.m2d.drds;

import com.share.tool.m2d.model.DrdsRouter;
import com.share.tool.m2d.utils.DrdsRouterUtil;

/**
 * @author syq
 * @data 2020/1/6
 */
public class MainRds {
    public static void main(String[] args) {
        /*java -jar bbt-data.jar env, table,nick*/
        if (args.length != 3) {
            System.out.println("参数个数错误-->java -jar bbt-data.jar env table nick");
            return;
        }
        String env = args[0];
        String table = args[1];
        String nick = args[2];
        DrdsRouter hash = DrdsRouterUtil.hash(env, table, nick);
        if (hash == null) {
            System.out.println(hash);
        } else {
            System.out.println(hash.toShell());
        }
    }
}
